projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d98285
)
arm: Remove include files from common.h
author
Simon Glass
<
[email protected]
>
Wed, 17 May 2017 14:23:01 +0000
(08:23 -0600)
committer
Tom Rini
<
[email protected]
>
Mon, 5 Jun 2017 15:02:38 +0000
(11:02 -0400)
With a small tweak we can avoid including these files for all boards.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
common/board_f.c
patch
|
blob
|
history
include/common.h
patch
|
blob
|
history
diff --git
a/common/board_f.c
b/common/board_f.c
index a212f2b53921356f730c4bd28d8515b2182385b2..fe90faf309083efed2846d211040e0935e92ec60 100644
(file)
--- a/
common/board_f.c
+++ b/
common/board_f.c
@@
-31,6
+31,9
@@
#include <trace.h>
#include <video.h>
#include <watchdog.h>
+#ifdef CONFIG_MACH_TYPE
+#include <asm/mach-types.h>
+#endif
#if defined(CONFIG_MP) && defined(CONFIG_PPC)
#include <asm/mp.h>
#endif
diff --git
a/include/common.h
b/include/common.h
index c5cb65bedae46ef208ddbce95e682c89f97e727b..3004c22b7283672ec0102388f46c8eaef18f8ae4 100644
(file)
--- a/
include/common.h
+++ b/
include/common.h
@@
-425,12
+425,6
@@
static inline int setenv_addr(const char *varname, const void *addr)
return setenv_hex(varname, (ulong)addr);
}
-#ifdef CONFIG_ARM
-# include <asm/mach-types.h>
-# include <asm/setup.h>
-# include <asm/u-boot.h>
-#endif /* CONFIG_ARM */
-
#ifdef CONFIG_AUTO_COMPLETE
int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);
#endif